package com.it.demo012;

public class Desk {
    //定义一个标记
    //true
    //public static boolean flag =false;
    private boolean flag;
    private int count;
   // public static  int count =10;
    private final Object look = new Object();
   // public static final Object look = new Object();


    public Desk() {
        this.flag = false;
        this.count=10;
    }

    public Desk(boolean flag, int count) {
        this.flag = flag;
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getLook() {
        return look;
    }

    @Override
    public String toString() {
        return "Desk{" +
                "flag=" + flag +
                ", count=" + count +
                ", look=" + look +
                '}';
    }
}
